home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / contrib / tugboat / ltugproc.cls < prev    next >
Text File  |  1997-03-26  |  7KB  |  225 lines

  1. %%
  2. %% This is file `ltugproc.cls',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% tugboat.dtx  (with options: `ltugproccls')
  8. %% 
  9. %% Copyright (C) 1994,1995,1996 TeX Users Group
  10. %% All rights reserved.
  11. %% 
  12. %% This file is part of the Tugboat package.
  13. %% -----------------------------------------
  14. %% 
  15. %% This is a generated file.  Permission is granted to to customize the
  16. %% declarations in this file to serve the needs of your installation.
  17. %% However, no permission is granted to distribute a modified version of
  18. %% this file under its original name.
  19. %% 
  20. %% 
  21. \NeedsTeXFormat{LaTeX2e}[1994/12/01]
  22. \ProvidesClass  {ltugproc}
  23.                    [1996/10/14 v1.4b
  24.                        TUG conference proceedings class%
  25.                    ]
  26. \def\@tugclass{ltugproc}
  27. \newif\if@proctw@column  \@proctw@columntrue
  28. \DeclareOption{onecolumn}{\@proctw@columnfalse}
  29. \newif\if@proc@sober
  30. \DeclareOption{tug95}{\@proc@soberfalse}
  31. \DeclareOption{tug96}{\@proc@sobertrue}
  32. \DeclareOption{tugproc}{%
  33.   \ClassWarning{ltugproc}{Option \CurrentOption\space ignored}%
  34. }
  35. \DeclareOption{numbersec}{\ds@tugproc}
  36. \DeclareOption{nonumber}{\ds@tugproc}
  37. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ltugboat}}
  38. \InputIfFileExists{ltugproc.cfg}{\ClassInfo{ltugproc}%
  39.            {Loading ltugproc configuration information}}{}
  40. \@tempcnta\year
  41. \divide\@tempcnta by100
  42. \multiply\@tempcnta by100
  43. \advance\@tempcnta-\year
  44. \@tempcnta-\@tempcnta
  45. \edef\@tempa{\noexpand\providecommand\noexpand\tugProcYear
  46.                 {\ifnum10>\@tempcnta0\fi\the\@tempcnta}}
  47. \@tempa
  48. \ClassInfo{ltugproc}{Proceedings defined for year
  49.   \expandafter\ifnum\tugProcYear<70\relax20\else
  50.     \expandafter\ifnum\tugProcYear>100\else19\fi\fi\tugProcYear}
  51. \expandafter\ifx\csname ds@tug\tugProcYear\endcsname\relax
  52.   \def\tugProcYear{96}\fi
  53. \ExecuteOptions{tug\tugProcYear}
  54. \ProcessOptions
  55. \LoadClass{ltugboat}
  56. \def\maketitle{%
  57.  \setcounter{footnote}{0}%
  58.  \def\thefootnote{\fnsymbol{footnote}}%
  59.  \if@proctw@column \twocolumn[\@maketitle]%
  60.  \else             \onecolumn\@maketitle
  61.  \fi
  62.  \def\thefootnote{\arabic{footnote}}%
  63.  \setcounter{footnote}{0}%
  64.   }
  65. \def\@TB@test@document{%
  66.   \edef\@tempa{\the\everypar}
  67.   \def \@tempb{\@nodocument}
  68.   \ifx \@tempa\@tempb
  69.     \@nodocument
  70.   \fi
  71. }
  72. \def\AUTHORfont {\large\rmfamily\mdseries\upshape}
  73. \def\TITLEfont  {\Large\rmfamily\mdseries\upshape}
  74. \def\addressfont{\small\rmfamily\mdseries\upshape}
  75. \def\netaddrfont{\small\ttfamily\mdseries\upshape}
  76. \def\@maketitle{%
  77.    {\parskip\z@
  78.     \TITLEfont\raggedright\noindent\@title\par
  79.       \count@=0
  80.       \loop
  81.       \ifnum\count@<\authornumber
  82.         \vskip20\p@
  83.         \advance\count@\@ne
  84.         {\AUTHORfont\theauthor{\number\count@}\endgraf}%
  85.         \addressfont\theaddress{\number\count@}\endgraf
  86.         {%
  87.           \allowhyphens
  88.           \hangindent1.5pc
  89.           \netaddrfont\thenetaddress{\number\count@}\endgraf
  90.           \hangindent1.5pc
  91.           \thePersonalURL{\number\count@}\endgraf
  92.         }%
  93.       \repeat
  94.    \vskip20\p@}%
  95.    \if@abstract
  96.       \centerline{\bfseries Abstract}%
  97.       \vskip.5\baselineskip\rmfamily
  98.       \list{}{\listparindent20\p@
  99.          \itemindent\z@ \leftmargin4.875pc
  100.          \rightmargin\leftmargin \parsep \z@}\item[]\ignorespaces
  101.             \the\abstract@toks
  102.       \endlist\global\@ignoretrue
  103.    \fi
  104.    \vskip1pc
  105.    \xdef\@titlepagenum{\number\c@page}%
  106.    \global\@afterindentfalse\aftergroup\@afterheading
  107.   }
  108.  
  109. \def\@titlepagenum{1 }          % default
  110. \def\thanks#1{\@bsphack\TBWarning{\string\thanks\space
  111.               is not supported}\@esphack}
  112. \newtoks\abstract@toks  \abstract@toks{}
  113. \let\if@abstract\iffalse
  114. \def\abstract{\edef\@abstract@{\@currenvir}
  115.   \global\let\if@abstract\iftrue
  116.   {\ifnum0=`}\fi
  117.   \@abstract@getbody}
  118. \let\endabstract\relax
  119. \long\def\@abstract@getbody#1\end{%
  120.   \global\abstract@toks\expandafter{\the\abstract@toks#1}%
  121.   \@abstract@findend}
  122. \def\@abstract@findend#1{%
  123.   \def\@tempa{#1}
  124.   \ifx\@tempa\@abstract@
  125.      \expandafter\@abstract@end
  126.   \else
  127.       \global\abstract@toks\expandafter{\the\abstract@toks\end{#1}}%
  128.       \expandafter\@abstract@getbody
  129.   \fi}
  130. \def\@abstract@end{\ifnum0=`{\fi}%
  131.   \expandafter\end\expandafter{\@abstract@}}
  132. \renewcommand{\signature}{\TBWarning
  133.          {\string\signature\space is invalid in proceedings issues}}
  134. \def\rhTitle{\@title}
  135. \def\shortTitle #1{\def\rhTitle{#1}}
  136. \def\rhAuthor{\@author}
  137. \def\shortAuthor #1{\def\rhAuthor{#1}}
  138. \def\@oddhead{\MakeRegistrationMarks
  139.   \ifnum\c@page=\@titlepagenum
  140.   \else
  141.     {%
  142.       \hfil
  143.       \def\\{\unskip\ \ignorespaces}%
  144.       \rmfamily\rhTitle
  145.     }%
  146.   \fi}
  147. \def\@evenhead{\MakeRegistrationMarks
  148.   \ifnum\c@page=\@titlepagenum
  149.   \else
  150.     {%
  151.       \def\\{\unskip\ \ignorespaces}%
  152.       \rmfamily\rhAuthor
  153.       \hfil
  154.     }%
  155.   \fi}
  156.  
  157. \advance\footskip8\p@    % for deeper running feet
  158.  
  159. \def\dopagecommands{\csname @@pagecommands\number\c@page\endcsname}
  160. \def\setpagecommands#1#2{\expandafter\def\csname @@pagecommands#1\endcsname
  161.   {#2}}
  162. \def\@oddfoot{\ifpreprint\pfoottext\hfil\Now\hfil\thepage
  163.         \else\rfoottext\hfil\thepage\fi\dopagecommands}
  164. \def\@evenfoot{\ifpreprint\thepage\hfil\Now\hfil\pfoottext
  165.         \else\thepage\hfil\rfoottext\fi\dopagecommands}
  166.  
  167. \def\pfoottext{{\smc Preprint}: Proceedings of the \volyr{} Annual Meeting}
  168. \def\rfoottext{\normalfont\TUB, \volx\Dash
  169.    {Proceedings of the \volyr{} Annual Meeting}}
  170. \setcounter{secnumdepth}{0}
  171. \if@proc@sober
  172.   \def\section
  173.          {\TB@nolimelabel
  174.           \TB@startsection{{section}%
  175.                            1%
  176.                            \z@%
  177.                            {-8\p@}%
  178.                            {6\p@}%
  179.                            {\normalsize\bf\raggedright}}}
  180. \else
  181.   \def\section
  182.          {\TB@nolimelabel
  183.           \TB@startsection{{section}%
  184.                            1%
  185.                            \z@%
  186.                            {-8\p@}%
  187.                            {6\p@}%
  188.                            {\large\bf\raggedright}}}
  189. \fi
  190. \def\subsection
  191.          {\TB@nolimelabel
  192.           \TB@startsection{{subsection}%
  193.                            2%
  194.                            \z@%
  195.                            {6\p@\@plus 2\p@\@minus2\p@}%
  196.                            {-5\p@\@plus -\fontdimen3\the\font}%
  197.                            {\normalsize\bf}}}
  198. \def\subsubsection
  199.          {\TB@nolimelabel
  200.           \TB@startsection{{subsubsection}%
  201.                            3%
  202.                            \z@%
  203.                            {1sp}%
  204.                            {-5\p@\@plus -\fontdimen3\the\font}%
  205.                            {\normalsize\bf}}}
  206. \renewcommand\appendix{\par
  207.   \renewcommand\thesection{\@Alph\c@section}%
  208.   \setcounter{section}{0}%
  209.   \setcounter{secnumdepth}{1}%
  210.   \def\@tempa{appendix}
  211.   \ifx\@tempa\@currenvir
  212.     \expandafter\@appendix@env
  213.   \fi
  214. }
  215. \newcommand\app@prefix@section{}
  216. \newcommand\@appendix@env[1][Appendix]{%
  217.   \renewcommand\@seccntformat[1]{\csname app@prefix@##1\endcsname
  218.     \csname the##1\endcsname\quad}%
  219.   \renewcommand\app@prefix@section{#1 }%
  220. }
  221. \let\endappendix\relax
  222. \endinput
  223. %%
  224. %% End of file `ltugproc.cls'.
  225.